import request from '@/utils/request'
// 订单发货
export function refund(query) {
  return request({
    url: '/fts/refund/refund',
    method: 'get',
    params: query
  })
}
// 订单发货
export function deliverGoods(query) {
  return request({
    url: '/kuaidi100/subscription',
    method: 'get',
    params: query
  })
}
// 获取物流公司列表
export function listLogistics(query) {
  return request({
    url: '/fts/company/listAll',
    method: 'get',
    params: query
  })
}

// 查询订单管理列表
export function listOrder(query) {
  return request({
    url: '/fts/order/list',
    method: 'get',
    params: query
  })
}

// 查询订单管理详细
export function getOrder(id) {
  return request({
    url: '/fts/order/' + id,
    method: 'get'
  })
}

// 新增订单管理
export function addOrder(data) {
  return request({
    url: '/fts/order',
    method: 'post',
    data: data
  })
}

// 修改订单管理
export function updateOrder(data) {
  return request({
    url: '/fts/order',
    method: 'put',
    data: data
  })
}

// 删除订单管理
export function delOrder(id) {
  return request({
    url: '/fts/order/' + id,
    method: 'delete'
  })
}
